package com.keensense.vcm.model;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.List;

@XmlRootElement(name = "response")
public class SnapInfosResponse extends BaseResponse {

    @XmlElementWrapper(name = "snapInfos")
    @XmlElement(name = "snapInfo")
    private List<SnapInfo> snapInfos;

    @XmlTransient
    public List<SnapInfo> getSnapInfos() {
        return snapInfos;
    }

    public void setSnapInfos(List<SnapInfo> snapInfos) {
        this.snapInfos = snapInfos;
    }

    public static class SnapInfo {


        @XmlElement
        private String cameraSn;

        @XmlElement
        private String cameraCNCode;

        @XmlElement
        private String faceId;

        @XmlElement
        private String faceURL;

        @XmlElement
        private Long occurrenceTime;

        @XmlElement
        private String recordId;

        @XmlElement
        private Double similarity;


        @XmlTransient
        public String getCameraSn() {
            return cameraSn;
        }

        public void setCameraSn(String cameraSn) {
            this.cameraSn = cameraSn;
        }

        @XmlTransient
        public String getCameraCNCode() {
            return cameraCNCode;
        }

        public void setCameraCNCode(String cameraCNCode) {
            this.cameraCNCode = cameraCNCode;
        }

        @XmlTransient
        public String getFaceId() {
            return faceId;
        }

        public void setFaceId(String faceId) {
            this.faceId = faceId;
        }

        @XmlTransient
        public String getFaceURL() {
            return faceURL;
        }

        public void setFaceURL(String faceURL) {
            this.faceURL = faceURL;
        }

        @XmlTransient
        public Long getOccurrenceTime() {
            return occurrenceTime;
        }

        public void setOccurrenceTime(Long occurrenceTime) {
            this.occurrenceTime = occurrenceTime;
        }

        @XmlTransient
        public String getRecordId() {
            return recordId;
        }

        public void setRecordId(String recordId) {
            this.recordId = recordId;
        }

        @XmlTransient
        public Double getSimilarity() {
            return similarity;
        }

        public void setSimilarity(Double similarity) {
            this.similarity = similarity;
        }
    }
}
